import UIKit

@available(iOS 2.0, *)
extension QKC where AA :UIActivityIndicatorView {
		// default is UIActivityIndicatorViewStyleMedium
    open func style_qk_s(_ style:  UIActivityIndicatorView.Style ) -> QKC<AA,YY,ZZ, UIActivityIndicatorView.Style >{
        return link(next: style).then_QK { $0.value.activityIndicatorViewStyle = style }
	}
    open func style_qk_g() -> QKC<AA,YY,ZZ, UIActivityIndicatorView.Style >{
        self +^ self.value.activityIndicatorViewStyle
	}

		// default is YES. calls -setHidden when animating gets set to NO
    open func hidesWhenStopped_qk_s(_ hidesWhenStopped:  Bool ) -> QKC<AA,YY,ZZ, Bool >{
		return link(next: hidesWhenStopped).then_QK { $0.value.hidesWhenStopped = hidesWhenStopped }
	}
    open func hidesWhenStopped_qk_g() -> QKC<AA,YY,ZZ, Bool >{
		 self +^ self.value.hidesWhenStopped
	}

    @available(iOS 5.0, *)
    open func color_qk_s(_ color:  UIColor) -> QKC<AA,YY,ZZ, UIColor>{
		return link(next: color).then_QK { $0.value.color = color }
	}
    @available(iOS 5.0, *)
    open func color_qk_g() -> QKC<AA,YY,ZZ, UIColor>{
        self +^ self.value.color!
	}

    open func isAnimating_qk_g() -> QKC<AA,YY,ZZ, Bool >{
		 self +^ self.value.isAnimating
	}

    open func startAnimating_qk_f() -> QKC<AA,YY,ZZ,Void>{
		 self +^ self.value.startAnimating()
	}

    open func stopAnimating_qk_f() -> QKC<AA,YY,ZZ,Void>{
		 self +^ self.value.stopAnimating()
	}

}

